home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / web2c.yytext.help < prev    next >
Text File  |  1994-11-21  |  784b  |  25 lines

  1. ftp.cs.umb.edu:pub/tex/web2c.yytext.help, 22nov94.
  2.  
  3. In web2c 6.1, you may get compiler errors something like this:
  4.  
  5.     In file included from web2c.lex:4:
  6.     web2c.h:54: conflicting types for `yytext'
  7.     lex.yy.c:524: previous declaration of `yytext'
  8.     
  9. The solution is to change the line that says `DECLARE_YYTEXT' (or
  10. something like that) in web2c-6.1/web2c/web2c.h to whatever matches your
  11. lex program. Probably one of:
  12.  
  13.    extern char yytext[];
  14.    extern unsigned char yytext[];
  15.    extern char *yytext;
  16.    extern unsigned char *yytext;
  17.  
  18. The way you can find out what is to run a trivial program through your
  19. lex and search for yytext in the output:
  20.  
  21. echo %% | lex | grep yytext
  22.  
  23. This is what configure does, but it fails in some cases. This will be
  24. fixed in the next release.
  25.